
export var option = {
  series: [
    // 内圈
    {
      name: "inner",
      type: "gauge",
      progress: { show: true, roundCap: true },

      radius: "75%", //** 半径大小 **
      center: ["50%", "50%"], //** 调整仪表盘的位置 **
      startAngle: 225,
      endAngle: -45,

      splitLine: {
        //是否显示分隔线
        show: true,
        lineStyle: {
          width: 1,
        },
      },
      itemStyle: {
        borderCap: "round",
      },

      axisTick: { show: false }, //是否显示刻度
      axisLabel: { show: false }, //是否显示标签
      axisLine: { show: true, roundCap: true }, //是否显示仪表盘轴线
      detail: { show: true, offsetCenter: [0, "80%"] }, //仪表盘详情，用于显示数据
      data: [{ value: 47.1 }],
    },

    // 外圈
    {
      name: "outter",
      type: "gauge",

      radius: "95%", //** 半径大小 **
      center: ["50%", "50%"], //** 调整仪表盘的位置 **
      startAngle: 225,
      endAngle: -45,
      progress: { show: false }, //是否显示进度条
      splitNumber: 20, //仪表盘刻度的分割段数
      splitLine: { show: false }, //是否显示分隔线
      axisLine: { show: false }, //是否显示仪表盘轴线
      axisTick: {
        show: true,
        distance: 0,
        lineStyle: {
          color: {
            type: "linear",
            colorStops: [
              {
                offset: 0,
                color: "red", // 0% 处的颜色
              },
              {
                offset: 1,
                color: "blue", // 100% 处的颜色
              },
            ],
          },
        },
      },
      axisLabel: { show: false }, //是否显示标签
      itemStyle: {
        //仪表盘指针样式
        color: "#58D9F9",
        shadowColor: "rgba(0,138,255,0.45)",
        shadowBlur: 10,
        shadowOffsetX: 2,
        shadowOffsetY: 2,
      },
      detail: { show: false }, //仪表盘详情，用于显示数据

      data: [{ value: 60 }],
    },
  ],
};
